added output format and changed to map and reduce calls not implement membrane communication