Added documentation + minor cleanup

Sweet, sweet documentation.