fixes to make this work as an external module
Merge pull request #2 from craigulliott/v0.0.2

fixes to make this work as an external module