added documentation of protocol
commit of database layout documentation