translated some comments in qr.h to understand it better