Added some comments.
Added some more comments. Removed unused classes.