Continued refactoring.
Refactored graphics classes.
Added node unselection.