fix javadoc and build errors