add package.json and tidy