I'm sorry you were struggling and I hope you're feeling better now.
I just wanted to add my two cents about caffeine, be careful. It helps some people and for others (like me) it makes our headaches a lot worse. I took Excedrin (once) which has a lot of caffeine in it and I nearly died I was so sick...okay so I didn't nearly die, but I felt like it...lol.
If you're not feeling better, I would recommend seeing your doctor.