Updated event generation code
Merge branch 'master' of https://github.com/davidtlee/consensus