Refactored ConfigGenerator and put it in the proper directory