You should read up before you you root or flash roms.
If you don't you could cause REAL PROBLEMS and even make your device useless (Bricked)
With Odin you flash a custom recovery on to the device. You then flash a super user app which gives you full root access.
Once rooted you can choose a custom rom from XDA. You flash the rom thru the custom recovery you flashed earlier.