In functions : fixed a minor bug within the GetDiscreteFactory
Changed indentation style