Setup document types and templates