Clean up code in node manager.
Merge pull request #2 from plow-technologies/dev_clean_up

Clean up code in node manager.