minor refactors, thanks bfeng
each_with_object reverses call signature
Merge pull request #22 from jmmastey/refactors

Refactors