Improved error message when non-integers are input. Other wise an error message about non-negative numbers was also present which is not true for this function.