Added debug logging option
Approaching 100% DIF conformance