compile debug print functionality only when DEBUG is defined
Merge pull request #21 from dnet/ifdef-debug-functions

compile debug print functionality only when DEBUG is defined