fixes #321 - I merged in branches that fix #320 and #297 320-add-default-for-file-data-get 297-filename-in-documents
script
Fixes #299