Fixed many bugs in the relation identification.
Temporary disable of sometimeSequence since it is not handled in the gui.