Contents:
check_and_prepare_output_file()
Function to copy the input file and
Function to prepare the output file, create some initial groups and store the configuration