added an option to print the names excluded during
selection and modified the output formatting