Refactor uicodemirror constructor

After #20
Close #17, Close #6