Fixes.

Generate_distance_matrix: renaming variables and refactoring
Server: Adding comments
v2methods: Fixing comment