docs: def add_model(self, model):
          """
          Add a model to the document
          """
          if model.identity not in self._models.keys():
              self._models[model.identity] = model
          else:
              raise ValueError("{} has already been defined".format(model.identity))