changed root to an array of nodes, simplified node structure
builds now