Fixed bug in isNumeric() and other minor changes