added node class with name and edges, and edge class with target and cost, also added local node