addded javadocs