mpi initialisation added to top of main method.