Clean up generic filters pull request

The default parameter for doc_id_list is now None instead of [] in order
to avoid problems with mutable argument defaults. The attributes
_doc_id_set, min_tf_idf, _doc_id_seen are no longer class attributes.
Some docstrings were cleaned up, but more cleaning is necessary.