Fix package.json
Fix function definition
Added .gitignore