Nodes change color on selection. Automatic change of state between adding nodes and adding edges.
Merge pull request #38 from e55k4y/dev

Nodes change color on selection. Automatic change of state between addin...
Code is refactored and simplified.
Merge pull request #39 from e55k4y/dev

Code is refactored and simplified.