Add a function to compute the check digit with the luhn algorithm Minor corrections of the check_luhn function