Added document model
Fixed uri error