Fixed filereader error

It now correctly adds the file and returns them