QR code reader improvements and fixes