Deleted unneccessary comments and appropriate comments. Also added docblocks and cleaned a lot of code and added some extra code.