Fixed bugs. Updated text generator.