Rearrange function placement, set TOF min to 60, delete old controls code, and wrap all code in for loop to set up for controlling for assay