Function that loads in files from a directory. For #18.