Some changes

 - replaced tabs with spaces
 - updated package.json file with new fields (`npm init`)
 - added test file (run `npm test` or `node test/index` to run tests)