Error handling and bug fix

Gave proper error handling to NumberNames.py as well as fixed a bug
associated with the tens