add gradle task to generate javadoc
fix javadoc warnings