Added debugging statements to MapReduce demo.