made a bunch of changes, mainly made the randomization 1000x more effcient.