Added getText() method

to library and demo