Add EditorConfig file and fix inconsistent code style