implemented .text() method

Closes #10