Why do files created by my extension appear in the calling applications directory?
Files created by an extension are created on behalf of the calling application, and hence they are created in the application directory. The reason for this is that numerous applications may be calling the extension, and if created in the extension directory would be accessible to all apps calling the extension.