Finished a draft of the docstore.