fixed getValue() such that the missing negative sign is now in. was breaking the learning of CG.