add methods for dealing with text.
regenerate docs
Merge pull request #3 from waterson/master

add methods for dealing with text