modified batch tools to allow for separate .mat file
bug correction in job generation