Spectral index calculation, profile-stacking, bug fixes, etc.