Merge pull request #10 from ctb/hw3-polavar3-comments

fixed several minor typos; added some comments
Merge pull request #9 from polavar3/hw3

HW3 pull request