add package.json, refactor settings