bins is set in loadData and has no default.

There's a special error message if you index bins before it's set. It
can still be set manually without loadData, but it's not recommended.
Did all of the math for freqFunc.

Will need to use closures to reduce the parameters down to cosTheta and
cos2Phi, but that will be done in the spectal line iterator.