program more stable

production ready: at least ready to run on the cluster to generate some trial wave functions