added undo and backup files and some nice options