adding mode to simulator debugger
added mode to debugger
debugger mostly working