* Implemented batch processing versions of most existing tools. * Fixed several bugs in the functions that generate the batch processing versions.