Add documentation and unit tests to b64c and b64w

Doc changes only. b64c and b64w were completely undocumented before -- the docs are still lacking why they do what they do (I don't know, to be honest, the function names don't really tell you), but now they're at least unit-tested and contain some kind of description.