latest updates to make calculations fast

typical results with gb3 for a round of calcEnergyAndDerivs on a Intel(R) Core(TM)2 Duo CPU  T7500  @ 2.20GHz 17-20ms