moved styles into main.scss
refactored to allow graph redraws
added control to recalc matrix & redraw graph according to give/get/both
orientations