Added a basic debugger to the emulator