Added some documentation and an extra part to the xgcd test.