Better structured the tmp.sh
Split out the rest of the commands into specific shell scripts an created one shell script to drive them all