made dbg.h sand
actual tree deletion
compliance with new dbg.h
prototypes for new functions