Add documentation for protocol.
Small improvement of editor.