Minor bug fixes to median and mean headway calculations. Mean now calculates efficiently.