fix sign error in factor
degree doc change
add degree test