added status to documents. added update method to set status