Improve the debug function

I will name the "debug" method "dd" (dump and die), and I'll extract it from the class (I'll put it as a single function, by this way You could call it directelly!)