Added a log function that can be disabled in non-debug mode
exchanged console.log by Gnd.log