Batch and multiple sample submission with batch directory functionality
Remove unused varaibles