updates documentation on the README and for NPM