added callback to toggle debug infos on screen

callback debug() toggles text printing on screen
it is disabled by default