Frequencies - headways() tweaked, with test code ..