fixing length, drawing the nodes, and some naming changes