Wrote wrapper functions for printf, such that all the if(mpiid == 0)
  printf constructions can be eliminated
And added the file