Fix an undo bug
Add some documentation
Fix undo bugs
Reimplement insertVisualLineBreak()