Enable record segment editing

Lots of mess, mainly around a Formatter[Segment]