changes to demo console, added debug messages