Starting with the basic barcodescanner example from https://github.com/wildabeast/BarcodeDemo.