docs and fix bugs in triangulation refresh and nearest neighbor weights