updated the function to use an object instead of just reading lines, added a function to write to the csv as well so I can update it without manually modifying it
updated the function to use an object instead of just reading lines, added a function to write to the csv as well so I can update it without actually modifying it