Added haddock comments to Factors module