made regridding code into a function, added shear calculations
added commented matlab code for conversion