Assigned funcitons to variable names. Added more comments. Closes #2