Final batch script and modified plot.sh