Refactored TextSoap and added line, word, character counting.