Adding unit, and a few functional, tests.

Iterating the version number for publish to NPM.
Also updated the README for contribution guidelines, as well as
some basic style-guidelines.
Updated the code to match the new style-guidelines.