fixed phase and added doc

fixed the problem with the phase (where gen_synthetic was overriding
the input) and added some documentation to the code.
fixed timebaseline and LC size

the timebaseline is now more accurate and the lightcurve now gets
randomly chopped to be 30 days in length.