Fixed and documented the ControllerFactory.cs class.