Update sumSpectrum to version from Bas. Minor other changes.
Fixed EXTRACTION_PADDING. Now default value is 0, and saved/restored from settings file.