Removed unneccesary code (was commented in previous version); added breif documentation for necessary methods
cleaned up code; added documentation