return control after software interrupt
added various debugging values
fixed context switch!