merging changes to calibration and bugfix in CbcInterface::WriteCbcReg() plus optional debug output for problematic readback