Fix limiting of check range (target did not work)

The target value that can be passed in a command line argument to limit the
search range has been previously saved, but not used (i.e. the main loop did
not check if the target had been reached).
Fix main loop condition to check for the target value as well as a fixpoint and
adapt exit status message to print whether a fixpoint or a target value caused
the program to end.