got codemirror working, some cleanups