Create cortex.xml

serialzation of cortex