Added a debug console; other fixes
Update