adding constant for the DEBUG build mode
replace runmode comparison with constants, add missing minification properties