New function IsValidNumber(): checks whether a command line argument os truely a valid number
This is needed for the following commits where each command line arguments makes thorough checks to the number of its subsequent arguments.