added a config.json file and integrated it with the program