Merge minor changes from Trunk: Fix Rayleigh distribution range. Fix gcd argument types. Update docs to match.