Oh well if you were coughing that badly it could very well be a cracked rib or a pulled muscle. Maybe wait a couple of weeks and if it hasn't improved go back to the Doctor. In the mean time I'd advise you to try not to do anything that increases the pain. I hope all goes well for you.