abstract Debug operations

Add a new header with a debugging namespace.
Add a log function that does the same thing as previous cerr thing.