write comments, write tests for getDistance
add default_languages.json, change example