Added homework chapters

Added homework chapters, moved table of contents into proper place,
added more comments to .cls file and cleaned it up