Add some debug output to the batch tool.  Fix some UI typos.