Added list of segments for each hw segment and added remove and add segment methods