Add documentation for factor()