remove dead code
Improve protocol documentation