Restructured atten bandpass code a little bit.

This all needs testing.