Documentation for distance module