Basic applyChange scheme for text insertion implemented. Still very buggy.