Fixed linearRealDist and added docs.