More constness with weights.
Improvec comments.
Improved encapsulation for weights.