Several bugfixes in tool.  Added log of entered commands to allow easy creation of script for replay.