Updated the gravity implementation to have double precision instead of float precision.