Changed id --> cid in emit messages
Bump version to 0.5.0