Text this: The switching dynamics of the bacterial flagellar motor