Merge pull request #39 from csmith/master

Use forEach where possible.
Specify proper dependency versions.