Add getter for protocol state, document enum #38