added RangeFilter class
refactored filter.py module