Fixed typos and added variable for number of procs to run