Merge pull request #1 from euangoddard/master

Update from original
Update set_text function

Not sure why the try / catch was failing but this seems to work.
Merge pull request #3 from wayferer/master

Update set_text function