boundary variables
current control
changed IDs
rearranged
added typedef for SineitSegment
current as variable