added update retrieve corpus methods