fixes to package.json and readme for using as an npm module