Added debug option

For current and future console messages.
If debug===false, messages not shown