Dynamics of Dispersive and Nonlinear Media.