made the foundation stuff and created the settings and functions to be used elsewhere