fixed issue #8, cleaned up the debug UI quite a bit.