updates to the api_barcode and other various code cleanup