Add query status capability as per v0.9 of the protocol
Fix inline documentation