clean up printf(). Now define DEBUG as 1 to see detailed information.