changed kernel filter; in the process of making more logical kernel functions and a more logical inversion routine