added api for master failure robustness, output is a little bit messy, needs clean up. Termination is implementated by MPI_Abort() a little bit unclean, but working
add new makefile