renamed codebook to segmentation, added method as param, addec conn components, working now
renamed codebook to segmentation, added method as param, addec conn components, working now