Updated gitignore and added editorconfig
Changed main to index.js