added a function that reads all the files in the dir. going to add a feature to check if it is the newest file.