Added save as and a prompt to save changed file upon closing the main window.