How do I fix me?

I'm new to all of this so please bear with me. I'm in my late 20s and my wife and I have been married for about two years. let me start off by saying I love my wife with all my heart. Over the past year or so I have been struggling with my actions. I can't seem to control myself as if I run on a motor and it drives me to this tired state where I can fall asleep at varying times and for varying lengths of time. When this happens I pretty much go on autopilot, my motor skills barely work but I'm awake and I rarely remember anything. Occasionally I start fights and can be kind of mean. Needless to say this has caused problems with my marriage and now divorce is a very strong possibility. I started out about six months ago taking zoloft for depression, thinking that was the cure. Since then I've done multiple sleep studies to see if I had any sleep disorders. Nothing, but I was put on modafinil to keep me awake. I feel different but these situations keep occuring. I'm still kind of a motormouth, at times I don't think before I act/speak, I constantly figit, I can't calm down at home, i'm restless, etc. This is not the man my wife married and she has become depressed, frustrated, and resentful. I can't say that I blame her. She has been as understanding as one can be but only to a point. A few days ago I started looking into this ADHD thing. From what I can remember, I was put on ritalin in highschool for attention issues, was diagnosed with dyslexia at a very young age, and substance abuse and dyslexia run in both sides of my family. I have since seen my doctor and he reffered me to a specialist to go on some different types of meds. I'm praying that this works and my marriage can get back on track. Unfortunatley that may be too late and it upsets me a great deal. Opinions? Has this happened to anyone else?