Updated package.json so code can be run as an npm module