updated docs for npm use