Add documentation about command and message protocols