Tested and integrated igal's fixes for the shell debugger, ready to push forwards on the next part.
Minor tweaks during bug hunting - will need to work on the shell debugger to get a handle into the lower level functions.