simplified the main sketch. moved config to a single stuct instead of many discrete variable