extracted wrapMuts, a function that that wraps the mutators of nodes. This closes #8