add document, note, update BaseModel, update IBaseFunction