Separated the documentation from the AgentFactory as much as possible.