Commenting CSV Attachment Function

I did a bunch of maintenance to the CSV attachment functionality.

- [x] Added comments & made it more readable
- [x] Renamed the function (for some reason it still had `test` in the name)
- [x] Renamed the file which had `test` in the name