module now exports a constructor
Added package.json