Add titles to documents