Added a mapper and reducer to produce only one output file.