Quit menu

This simply quits the application. If the current analysis has not been saved to a .mat file, or has been modified since, a warning is outputted and offers the user a way to save his work before leaving.