Code to accompany the paper 'Corruption Drives the Emergence of Civil Society' by Abdallah et al (http://arxiv.org/abs/1307.6646)