Fixing titles and adding basic types to documents.
made sure title checks for text before trying string.