added x and y labels
added window ID number label
fit a step function in a sliding window across a light curve