added polar coordinates for drawing nodes
merged