hi there, looks like a few bits of decidual tissue has not been evacuated completely and that is what is comiing out now. The pain is caused due to the spasm of the uterus
trying to get rid of these bits. Most probably all the bits are out and you may not experience any more pain, HOwever it would be wise to get a urine analysis done to rule out UTI and also an ultrasound
to confirm that the uterine cavity
is evacuated completely. You may take an antispasmodic for symptomatic relief. Take care.