changed some of the names and instantiated Char_gen into my top level