add .npmignore, test.js and modify index.js and package.json