added new menu option to  Save file
new function to save to file
check for overwrite
new save function and placed logic in menu