qr test code

first version, to test qr encode/decode