Add DocTypes to documents