The Theory of Atomic Spectra