Add .editorconfig and fix formatting