Add funtion to generate barcodes, and a separate one to process all files so as to enable parallelisation.