Rename len to bitlen in function parameters

Clarify a few comments too.
15 files changed