added scripts to extract lightcurves with time limits