Small improvements to commit_sampler script