Split part of seginfo.cpp into seginfo_run.cpp
Minor cleanup of other files.