Made raster stats configurable on layerproperties tool and more cleanup