integer_to_string function added to allow numbered output filenames for numbers > 9