Committing updated stats code (missing this is probably what broke the
build).
Merge pull request #7 from dmyersturnbull/master

Fixing build and updating stats code