Added codemirror
Rewrited extend for accept arrays of functions