added message handling to GroupAgent, fixed typo