remove excess code
add drawNode and drawEdge
add selection function