Improve the debug function

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