Changes in the lookup()

The existence of inputFile will be checked in the main(). If the file
does not exist object hP will not be created.