Midterm Submission

cleaned up comments and whitespace