Added some javadoc

Added javadoc