Added NPM publishing task and fixed package.json to point to the correct main source file.