Understanding and Generating Multi-Sentence Texts