Rewritten QMC and fixed bugs with guessing