Fixed history handling.  Improved cmd execution.
Tweaked interactive error handling.