updates to main file to include error checking on batch submission status