Added NPM support. Updated documentation.