Created typeclass for keys
readBinary fixed