Add documentation for directive 'withFactoryMethod'