used cos instead of sin
minor comment updates
Merge pull request #6 from dschen/dorothy

minor bug fix, comments