Modified code so only master reads in from file then broadcasts to all the slave processes.