add flag to disable demo mode

Adding a flag to disable the demo mode. fix #4

I hope not running the thread does not have any unexpected side effects? I was not yet able to test on a real device, will do asap.