if the application is terminated before the 8 sec delay then the encryption does not take place. Made changes to the code. So that if the user presses quit and comes out then it will encrypt the file and then show the final screen.
there is a possiblity that the user may quit the app using the close button and not the quit or because he was unauthorised. FOr this I added a flag to make sure that when going out at the end of the program the data has to be encrypted. the version is now ready for build and release.
added headers for username,serial,account in all the table producing functions.