Rename `$properties` argument to `$attributes`

Additionally remove references to 'product' from docblock descriptions.