Added debug output

The debug output can be used as echo or notice