Documented classes with comments. Cleaned up code.