How to unroot and remove a custom kernal on android
You can do the same thing you did with Odin when you flashed the custom firmware. Just download your phone's firmware from http://samsung-updates.com/latest-firmware/ and flash everything in the downloaded files.