moved NodeInfo and NodeCallback to a header file.
moved NodeInfo and NodeCallback to a header file.