Added SpectrumProvider interface and fixed some minors.