Updated segment group and path segment to have print functions, updated main example to call these new functions