Fixed the goodtags function to actually work and get all the tags that we want, and replaced some of the csvtojson code with it. Haven't figured out how the other section that uses it works.