main, minor changes, beginning of computeSpectralSigs