added update codebook option, labels now update existing label