v1.2 Fixed printf and MPI_Scatter bugs