Refactored to npm module
Update package.json