Removed debugging output and fixed a small issue with the way the QR code was being output.