bug #1 fixed

added extra check when ($checksum % 10) == 0 return 0 as $checkdigit;