(((Dej))) Sorry you almost pulled a klonopin all nighter. May taking it in the a.m. would be better? As for the hug, well . . . you might not like this but it can take up to 12 weeks to calm down after a flare. And, for some of us, it is constant to varying degrees.
I tried something the other night. I put Vicks vapor rub on my rib cage area before going to bed. I don't know what possessed me to do it, other than I was too tired and lazy to go get the magnesium cream I made from the bathroom and the Vicks was right next me in my nightstand. I tried it anyhow and had pretty good results. I woke up yesterday with less muscle spasms in my ribs. I'm going to try it again and see what happens.
I'm glad you called your dr. and hopefully he/she will have another suggestion. Let us know how it is going.