added printed progress bar for lightcurve extraction