Added Undo/Redo

The functions are there but needs to be implemented with the other code.
I dont know exactly how that lookt so I added a short explaination on
what need to be connected.