corrected some javadoc and simplified java calls