Added documentation and getTextReader() method