Extracted SpectrumPanel and related classes to separate file
Cleaned up SpectrumPanel code