Good Lord!! That's so much documentation!!!!

Anyone who wants to try their luck at looking through the code and
seeing what everything does is welcome to as i have just finished going
through it line by line and explaining everything.

This commit is all about optimsation and clean up of the code and
documentation on what it all does and it's looking pretty slick if i do
say so myself... then again i'm probably the only one who'll understand
what i've got written in these files but oh well :/