Doc: protocol events wrapped

Protocol events are wrapped for simple recognition of event type
Imlemented new protocol

Implemented new protocol version with wrapping