extract create_and_sort_a_key_list function out of main()
take out leftover debugging line