fix javadoc and compiler warnings