Spectrum reduce

Draft of code to spectrum reduction via intgration
and instead of `counts`, why not just `y`