Saves all changes to a temporary file and asks user to confirm before overwriting master studentList.csv file when closing application. Also added data recovery in case of crashes, cleaned up some code.