OptimResult appends to file when writing x. linspace rewritten. output more descriptive message when basinhopping terminates.