Fixed the kF program's help output and a double free error.
Fixed the iterative method for calculating Xe

This also updates the nonlinear regression method, but this should
not be used since it doesn't yield accurate results. Finally, it is
now possible to specifiy the slab thickness at runtime.