addded javadocs to the page