tidied up build.gradle; added publising of htmlDocs of testdoc and javadoc; added the ability to specify a sourceDir and outputDir for inputfiles