Simplified atom() function

Removed second try/except.
added new errors
Replaced Exception with IOError

The try/except for file IO now only catches an IOError.
Use LisNameError in lookup() and repl()