Only define debug function in debug mode.
prepend every call to debug with a check for debugging.
Merge pull request #283 from bottlenose-inc/disable-debugging

Disable debugging