moved debug code into it's own predicate

the debugging methods should be prefixed with "debug_"
removed tab

:)