clean directory to hdr and src
add for jdiag integration
use dg_dbg instead of printf