Fixed bug where setText not working correctly

Docs updated