The below is what's required for 4.4.2 and below, if you've upgraded to 4.4.4, you can root without downgrading by using this: http://forum.xda-developers.com/showthread.php?t=2784900
I know this looks a lot, but most of the work is done for you by flashtool and the various 1-click programs...