Fixed output to CSV bug
Ensure key is string
Check we have child irns before dataframing