add documentation to show and addText

added documentation to showText and addText methods