small cleanup
Added support for changing filter type
Improved frequency and quality