Finishing up barcodescanning so it works on android, ios and emulator