added package.json
ignore swap files
Refactor to add initializers