Edited how program outputs files to directories for forward and reverse read files.