Added user settable flag for debug output
Added user settable flag for keyboard output