added test for sample_weights and improved examples