Key length can now be specified

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