Filter functions for interpolation

Add some generic filter functions for interpolation, and possible allow arbitrary passing of functions

addresses #103