Added checks for kpr() and debug().
Merge pull request #1 from damienmckenna/moar-debug

Added checks for kpr() and debug().