#14: Compute the checksum of the document.
Use document time change as condition if a new checksum is needed.
Improved debug messages.