added fractional_weights code & updated course notes