Minor clean-ups and documentation.
Fix for sandboxed OSX filechoosers.