replace code mirror with ace
samples, examples, bug fixing