Added DEBUGMODE to switch on/off display_errors

I added the opportunity to control the "display_errors" value by setting the DEBUGMODE to either true or false.