App now has a dubug mode to enable/disable logging