Reads TSV data files, averages the columns, and writes averages to output file