Text this: Optical slab waveguide propagation analysis