Changed X_name when writing output file to only default to args.coordinate if there is no input_filename.