Refactoring getSummary, ImportCSV, and File export