Added .editorconfig and fixed tabs

Added .editorconfig to easier make sure indentation style is followed.
Fixed some tabs.