Fixed issue from code quality check

 * The method "add()" cannot be called from context
Documenting in examples