Added variable output name of merged file

Added variable output name of merged file in function CreateMergeFile