fleshing out state based agents, fixed some typos