updated readme and package.json in preparation for npm
main file updated to index.js