added more tests, fixed a bug and added package.json and minified version