Added package.json and assorted fixes