simplify syntax when setting a non-nil value
remove node_modified as it's always true

(it was being set to true on line 61)
Merge pull request #340 from mapleoin/cleanup

Cleanup some useless code