ngsfilter tool fixed and improved

ngsfilter tool fixed and improved