On the Theory of Quasiperiodic Motions