Significant progress made in segmem.h and segmen.c