more work on validation. fix bb/intersect/min-dup distance checking
yet more work on validation and generation.  borders are working, but
need more testing