fix indentation of some plot code; fix modification of tim.data; try fitting flux first