added update command for documents