Added typespecs to codec and zeroconf