added spectrum_pi function.  sorry!

hello world!

a new but no more efficient spectrum calculation