Add package.json

I also removed trailing whitespace and fixed my typo in .gitignore.