Added section about factor(). Made appropriate changes at other places.