Ace editor in example + small bugfixes