Finished the Weighting and Resampling and Initialization sections.