Glad to hear you're OK. I commute for 95% of my miles and every time I have a
near miss I can almost always attribute it to something I did ... or didn't do. I'm glad to see you're taking a lessons learned approach to this incident rather than blaming the driver as is the case so often on these forums.
I'm of the mind that drivers simply cannot see a cyclist because they're instead on the lookout for a rather large steel container with wheels. I've had drivers look right at me with my gawdy yellow jacket and blinking lights and all -- and still act as though I did not exist. Or when they do see us, they fail to account for the speed we can attain (since their idea of cycling is 5 MPH ride in a park trail with a Wal*Mart bike). This, in my view, is the root cause of many a right-hook -- they just can't believe we're where we are after they passed us just a moment before.
In any event, bikers must be alert for these likelihoods as you apparently are. Glad to hear all is well.
Andy