fix enhancement #23: Mode Toggle: Can switch between production and
debug modes via toggle