Integrated elianda's QEMM code. Bumped version