Completely rewrote GUI and iCard processing and QR processing to make it more robust