Added some comments, removed some unused classes and stuff.