added poly### tools for arrays as y values. Can be used for efficiently correct nonlinear intensity behavior.