Added TextDocument class
Added method to get only the text blocks