Fixes in the code and in the readme. Added .npmignore