execution & naming edits

- made script executable on osx/linux with bash tag
- added 'r' tag so that you can actually run the script just by piping in the txt/csv file. 
- output is now named after input file

super small edits, but majorly useful if you're going to run this again for a few week's worth of data.