Added get_spectral_template feature, and cleaned up some docstrings.