Added documentation for func factorial to indicate that returns integer values