Fixed equation of state and dynamic updating of rho. Should fix units.