Text this: Wave Propagation in Linear and Nonlinear Periodic Media