Could you correct the comment on line 20?  It's pretty out of date; all this requires is the barcode as a string once