added some comments to weights.coffee