MapReduce code commented