added unique uid for nodes, reworked data management in general, added more error cases