refactored checkFilesExist when starting the program