Added mpi functionality and element table