Adding Yuidocumentation for the factory