Sure glad your ok Joe..
Now you can relax and digest those things you could have / should have done.
Like you siad, may staying back a little farther for safety..or what ever you feel could have helped you stay safe.
It takes a scare to wake us all up once in a while as to the dangers out there, including the unexpected as you said , and to be continuously on the alert for danger.
I normally pull to the left (center of the lane), where I can see the driver in his mirror, (and they can see me), or I once in a while pull way to the right where I have a way out. However, I do not like the right side though for many idiots try to turn right at every corner and they will ride on the berm so they dont have to wait for the traffic to clear..