Refractor mpi_diameter
Add some notes