-Redesigned undo/redo functionality, should be cleaner and more stable
(Still in testing).