improvements to RequireFile: also check that file is writable. New decorator module in extern to preserve docs and signature