AVISIMPL-337 Statistics for batch: Added lots and lots of javadoc.