streamlines all of the code, introduces config file
adds config file