Check pi

Hi Alex,

I've created the check digits until for #4.  Could you please review the changes?

Thanks

Shuang