Fix Javadoc, add some Gradle improvements