added functionality for new file
added functionality so that when the program is opened a new file is made