Added more help in batch mode.
The code now runs in batchmode.