add documentation on CM message states
merge election changes onto master branch from 6.0