update docs, hoist b64decode up and re-add test for it