Did some cleaning of the export functions (some much needed use of the DRY principle...) also added core letter to export