Added filtering to filters.py along with doctests in filters.doctest; still some bugs in the filtering and I need to make it more efficient