Add editorconfig and fix up spacing
Support methods

Closes #1