minor tweaks and a switch for type of smoothing of nebular spectrum