refactored rerender
refactored force layout
finally drawing lines
implemented links