added javadocs
Added javadoc