Iterates through the files in the input directory. Creates output files in the output directory.