updated the AgentState protocol to support status 404.
Updated some comments,