Corrected error in data file removal loop which stopped the sampler from runnning.