add bash header + read term

make script executable in bash + add 'r' tag so that you can actually
run the script just by piping in txt/csv file
output file name corresponds to input.

in preperation of running this script over a larger range of data (say
1 year or so), all output files are named after input filename.
Merge pull request #1 from nealrs/master

execution & naming edits