Added more comments to clip_bad_data and generate_variance, also added plotting to compare variance to sky flux and