[map reduce swarm] added code comments