Atomic and Molecular Aspects of Astronomical Spectra