Sample code for clipping inverse variances

Added some sample code to datafidelity and prep functions that might fix
some of the problems