updating jsdocs
adding javadoc