Update to the Edify to not use the debugLog function any more as it has been deprecated
Fix sanitation of the natural numbers to use the php functions filter_var.