Further progress on weighted means

bak, blb, bls now calculate weighted means. Still have other injuries
to complete.