MPI implementation with Bug fixes