First working version of the build_similar_names function. Some QC was done and it does appear to be working.