updated Agent javadocs