Added distance function and changed some stuff.

Also fixed typo in Readme.