Move -spec declarations to functions to make edoc happy, plus some incidental whitespace cleanups
Merge pull request #183 from basho/feature/edoc-fix

edoc fixes

Reviewed-by: seancribbs