Have more exposition at the start of the non-linearity section.
Relocate the automatic emission detection from the non-linearity.

The automatic detection of emission is extracted into its own
subsubsection.  This is to make the two algorithms clearer.  The
line detection had been a confusing aside in the description of how
non-linear spectra are identified.
Try to make the `headlight beam' description clearer.