ADD - Function to create module files

Function to create module files. This reduces the code, optimizes the
way to create a temporary file and the inject in a ZIP archive.