Committed the whole mpi folder and made some bugfixes
Merge branch 'master' of https://github.com/dnowatsc/other-code