Create nodedata.cpp

Implementation for the NodeData class