Add monkeypatch for hash.subtract!
Implement document insertion components