expanded lightcurve script to run on multiple input files, either outputing each individually or concatenating all input