Create debug.cpp

Useful class with debugging utilities