Added deleting temporary files
Added check for minimum size in merge buffers