New subroutine `finalizeSurfgen` in potlib.f90 that prints out the maximum deviation and evaluation count for the last trajectory