Documentation and some modifications on the check digit part.
It's in a complete state now until review.

svn path=/sandbox/; revision=82926