code from JI to make a model exoplanet phase curve
updated to add light curve fitting and plotting
small changes
now functional!