Specify number of points to interpolate for uniform grid
clean up a bit
added correct polygon simplifying algorithm and fixed dependencies