Adding tolerance variable for boundary correction tool
Now change quadrature set (up to n=10) based on kernel function