move segment into new file and change default separator to a companion object
add group and id to Segment
validate duplicate segment and implement powerline generator