Better documentation and fix package for npm