fix bug in filter.notch() and polished a bit the code