Java docs added

Mostly on function headers. Internal mojo not commented.