Added javadoc comments for APIs.