fixed some errors for QMC
It now generates the right amount of points and calculates the right
weights