fix editor
add CodeMirror config
add License
add document
cleanup