Added comments to all classes, removed unnecessary imports, fixed up
most warnings.