bin_thin3dh tested and generally corrected. plots of thinning also shown using modified make_png function