Starting to set up mpi communications
Cleanup and added MPI functions
Added basic MPI and updated relevant helper functions