Corrected problem with subentities with no NodeId which crashed the program
Corrected error with brackets and loops. Creation of graph with nodes and egdes now working.
Added management of complexes for base 4.
small code changes
fixed merge conflicts