Add standard debug conditional function

: master
Merge pull request #125 from jimschubert/master

Allow for somewhat standard debugging calls