Adding yui documentation for the factory