Added TextGenerator class, and some comments