enumeration of protocol state implemented, documentation from *rave added (needs updating)