Add Debug code

Using incudes/debug.inc.php for debug code.

Added some debug code to see what is going on here.