Improved protocol documentation