first commit-- code for KVMessage included

KVMessage mostly done-- not tested though