Added Document object class, added more functionality to build_filters