lead to unpredicted/unwanted behaviour. Commit replaces use of atoi() with str2NUM() functions and adds error messages if invalid input supplied.