added qrcode reading/writing + fixed minor bugs