Spring cleaning

Removed a few unnecessary code snippets and imports. Removed a lot of
unnecessary comments (chiefly the "this is a template" text at the
top). Added some javadoc describing classes.