updated model and added document types and redirects.