I can't tell if you received antibiotic therapy for the community acquired pneumonia
(CAP) but all you describe suggests that you are on the road to recovery
, with the exception of your dry cough, and the misery of sleeplessness. This scenario of persistent cough following a respiratory infection is common, especially in people with asthma. The infection perpetuates the bronchial hyperreactivity of asthma and keeps the cough going; the cough now, to some degree due to asthma.