Testing and fixing several things

Multimaps for fields and subfields. Update in string segmentation
routines. The basics are pretty ok now.