Code to pull mean ages from output files