Fixed constants to associate with new server and added validation functions of received data
Added in QR code reading support