Fixed delete and added create for documents