There are many you tube videos on how to set up android sdk. U need that to get adb access. Once you have that, you can get the LG Flash tool. Learn to use that before rooting so u have a way get out of a jam, like a bootloop. That's the hard stuff.
Rooting is easy, and there's a step by step...