Fix multi files issues with arrays.
Add manifest file
Add trap to delete temporary files