Changed undo logic to reread undone file
Finalized undo functionality