Clean up and add documentation to nodal_pathlengths.
Start to clean up nodal_summaryOut.