Nonlinear dynamics of optical frequency combs