Implemented some basic debug logging in document creation.
Documented debug logging.
Incremented version.