Thanks for the query.
What your doctor told is correct, after stopping the pills it will take sometime for regularization of the periods and that varies from person to person.
Possibly what you had in the last month was withdrawal bleeding.
Sometimes pain abdomen can be seen few days before periods itself.
So possibly you will get periods soon. If not go for pregnancy
test after missing your expected date of periods.