Add Editorconfig, delete some files and rewrite index