Fix errors in javadoc and other warnings