How to add extra data to a programmatically created node
I found this can easily be done using the Features module. Now i could create the the fields manually and then export them using features and copy the export to my custom module.