refactor into nice npm module. closes #7
Release 0.0.1