Wrote a function to export bodies data, currently as plain text