Debug template

now can output debug template with ANSI color , check tests/debug.php for sample output.