Update mpi_to_openshmem.c

Cleaned up code.