Removed trailing commas
Better console.log and console.error functions

Added a wrapper for the console.log and console.error functions.
This way the loging can be activated a deactivated easily by a
boolean switch in the Config.js file.