Added functionality to handle weighted data.
Added title and authors to the reference for the effective number of samples.