Added comments/cleaned up code for turn in