Bug fixes

Various bug fixes to the QSTEM/Master to make it workable while C++
refactor is under development.  Fixes file overwriting and other IO
issues mostly.

Added doNBED() choice, which expects a .cfg file with a probe wavefunction.  Otherwise code is essentially a branch of doCBED().

Renamed a lot of file pointers to avoid confusion that lead to bugs.