add editor config, improve code styling