Almost finished with part_update function. Need to add some trilinear interpolation to it. Also going to change move around some of the helper functions/defines/global variables.