add editorconfig to ensure file formating

closes #336
Merge pull request #338 from stoeffel/editorconfig

add editorconfig to ensure file formating