Fix another silly bug.
Use package scoping in __init__. Add a property for nyquist rate, and use it when resampling.