Update gms

Altered the sampler to check for stopping based on successful steps