Bounds checking and alternative name values based on files, in the summary stats file writer