Added dummy functions in the serial code for the new MPI calls
Remove the write statements and fixed the counting bug