Remove most direct calls to cout.  Direct debug to user set debugfile name, update test targets