refactor: marked private methods as private, and made the call to exportcsv clearer