let gradle emit aggregate javadoc
Merge remote-tracking branch 'origin/master'

* origin/master:
  add missing imports
  add destroy function for globals
  format javadoc