printing name and file location when generating files