The program now adds file extension when the file to be saved comes with no extension