Add text file annotations

Adds a convenience method for creating a text file annotation from a string.
cc @colettace