refactored text_generator and added newage command