demo page now should pass W3 validation, minor changes to minDistance handling