Adding undo method

The undo method will attempt to undo all the damage, though it cannot
restore deleted files.