Some basic clean up. Deleted unfinished and unnecessary functions and completed comments.