updated resourceVisualizer
added poloynomial fit
updated genHeterogenousEnv
fixed commonness of gradient resources