A new spherically symmetric general relativistic hydrodynamical code