Key length is now specifiable

Key length can now be specified; the encoding of the value can be
specified; stream is now readable