added getText() and closed #3