minor changes to start supporting MPI distributed computations
initial port of the thesis to MPI