Added document model and controller