Added support for sample weights. Added support for converting regression dataset into binary classification dataset based on a threshold. Documentation cleanup.