Rearrange modules a bit. Create GUI code for showing trajectory segments.