Added Undo/Redo functions.
Added Settings menu but non-functional
Fixed values and added temporary debug output.