clean up copyright notice and debug.cpp issue