Fixed a few errors in added barcodeHandler code