Add weight as a APIProperty.

... and minor adjustments of documentation.