Added comments to Weight.java