edits to lightcurve example code