I would like to understand what the following function is doing and how it is working, I have included comments showing my understanding with #\'s
create_uniq