It could be a broken rib, yes. Plus the stuff that binds them together can come loose.
Anything in that area is very painful though. I;ve broken numerous ribs over the years and it is a serious ball ache.
Nothing you can do really, unless you start coughing blood up, which you've not so tough I'm afraid, wait a couple of weeks and it'll get better.
edit: oh, you've already waited two weeks, should be right soon, give it another week or so and then go see a doctor but in my non-professional opinion, it'll sort itself out soon.