Updated so that the file name of an input file is properly written to
the results file.