updated mapreduce with logging.
beefed up pi