Make debug mode a parameter, not a setting
Merge pull request #362 from glowing-bear/hideDebug

Make debug mode a parameter, not a setting