Fixed some initial bugs and documentation.

Version will stay as 0.0.0 since project has not been published
to npmjs.org yet.