Fixed imaps
Simplified rewind mechanisme, added a UndoToCursor command