A model for African trypanosome cell motility and quantitative description of flagellar dynamics