Finished fleshing out node builder

Moved header-type definitions to an actual header.