Avoid going through printf when not in debug mode
Merge pull request #17 from chambart/master

Improve performance by avoiding printf