fix typo
update readme
fix distance function