nullpointerexception + error handling

fixed a nullpointerexception problem with evaluate. Then finished the
else statement to exit the program. Also added the println statement
after every loop iteration in launch ()