Hi TIG
I made a modification to an earlier version of your script that extends its functionality. Specifically, I tweaked it such that it exports the vertices of all the faces and edges in a model (not just the active selection). The tweak also finds all the faces and edges tucked away in groups and components. As well as applies the respective group and component level transforms to the vertices. I've uploaded the tweak to Gist, here's the link: modifiedScript
If the features are useful to you or your users feel free to integrate them with the latest version of your script.
Thanks a lot for creating and sharing the original script. It has been very useful!
Regards