NodeGrid fixes

Adds license
Removes unneded matrix
replaces std::for_each with for range-loop
Merge pull request #4581 from ricardoquesada/node_grid_fixes

NodeGrid fixes