Fixed gcd test. Updated documentation.