created MH algorithm for PGT and refined importance sampling