Your description, of sitting at the side of the road stunned, sounds like you are a good match with this drug. Of course, your body may not tolerate it well. That's a random thing, and it would totally suck here. You are precisely the person who should give this drug a try.
They don't know how it works. Because the don't know how it works, there have been a heck of a lot of experiments done to try and narrow that down. So far, all we know is that modafanil binds to dopamine receptors in a part of the brain that we thought did something else. If you read this, you'll see a whole list of things that modafanil is not, but precious little about what it is:
http://www.rxlist.com/cgi/generic2/modafinil_cp.htm
For most people, it is: a) benign. I.e. it didn't do much of anything. A wasted effort. ; or, b) a god-send.
I pray you are in category b).
Lar