Generate Config File