Quasi-periodic flows and tori on manifolds Dynamical systems on manifolds mathematics