add editorconfig
add linting and code cleanup