Feature/generating docs - Factory

Generated docs for the Factory class.