Tweaked average code

Can be used to iterate over all supernovae at max light. There's a
strange out of bounds error - I suppressed the warning, but it should be
dealt with. Also, the composite doesn't plot the entire range of
wavelengths. Not sure where the problem is.