clean and correct WangularSpectrum.cpp