Added declaration for open mpi stages interfaces. Removed some dead code.