Corrected some minor errors
Added some tests (taken from https://github.com/kathy-ray/nearby)
Changed filename of repository's license