Replicated KV Store Assignment

Fix compile warnings and issues reported by StyleCheck