Fixed documentation in lib/agent