configured javadoc task in gradle build, fixed some problem in javadoc