Numerous embarrassing bug fixes. Sample energies not ridiculously small.