added javadocs

added javadocs