- Added callback for debuglogs, replaced printf() by doutf()