Improved documentation of factor.h