Thanks for writing to us.
From your description it seems that you are having a chest infection
which is getting aggravated by smoking
. A chest X-ray will be helpful in identifying the exact cause.
The pain in the rib cage
could be related to chest infection or may happen due to inflammation of costochondral joints. You need a physical examination for diagnosis.
I hope this information has been both informative and helpful for you.
Dr. Praveen Tayal