[BUG #7264] add() now also accepts a collection as parameter
[BUG #7264] updated samples and docs