Add node_modules folder to the ignore list.
Update package file with devDependencies
Add basic test suite.
Fix options error and tidy up of code.