add editorconfig to ensure file formating

closes #336