Repackaging. Bug fixes. Added support for undo/redo:

* CTRL+Z triggers undo.
* CTRL+Y triggers redo.