Updates spectrum.zsh
Merge pull request #2390 from LFDM/updating_spectrum

Updates and refactors spectrum.zsh