added documentation and test for isCloseToEntry