add config flag for debug mode
only call console.log() if the config debug option is on
enable commented out console.log() calls using info() method
update debug statements in commented blocks

Just in case they get un-commented!