Properly clean the stack
Correct computation of vPrime, move cleanup for vHat to top
Updated memory use counts