Seperated funcitons into lib files :octopus: so I can add affiliation text to CSV export  :floppy_disk: