added documentation to the map/reduce files