Code Clean up and Doc blocks

Saw this framework on Reddit and I'm a bit bored right now. I hope you don't mind this pull request, don't want to sound like a douche :P 

I changed the coding style to that of a more "modern" php framework (ie laravel, symfony etc) and added Doc blocks for functions.

I'm going to go through the code some more and see what I can do to make it a little better, not that I'm an expert :P Hope this helps.