remove margin attribute
new allowDebug attributes

if set to false, will desactivate the debug mode (for faster rendering)
replace constants with config attribute (with default values)