Improved spectra print function
Refactored spectra_filter