fixing incorrect closest documentation adding tests.
updating readme more.