validation up to spec
added keyedbits, fixed KBBuffer, added base64