add Tools.closest and Tools.closestGreater
update tests for closest* methods
refactor + add documentation for closest* methods
build Emily