installs a more robust export script for mex debugging.  (to protect me from myself, and to work on multiple platforms)
clean up the documentation and stub for ubuntu version.