Update documentation for factorial method