Text this: Development of automatic vehicle headway control law and a simulation tool