Add liscense; clean up code, add package.json