Graivty
The force of gravity does vary with distance from the center of the object, in this case the center of the Earth. The force of gravity between any two objects is inversely proportional to the square of the distance between the two objects. Just like light spreading as sperical waves, the intensity of this light also inverserly proportional to the square of the distance of the light source. (Equation for sphere is 4 pi r^2) Note the equation, which you might not have learned yet,
Gravitational Force = G(m1)(m2)/r^2. (G is the gravitational constant obtained through measurements, a very small number)
The reason why we consider the acceleration due to gravity as constant on small objects moving relative to the Earth, such as in your problem, is becuase the mass of the Earth is so large compared to the small object and small distance (from the center of the Earth) in question. So for these problems, the approximate or average value of 9.8m/s^2, will do. But once you start to deal with such problems as satellites above the Earth's atmosphere (large distance) or the force between the moon and the Earth (both large masses, and large distance) then this equation must be used.
For your qustion as to why there is accelertion when V=0, you can answer this question if you just simply look at the equations. As the ball is going up with initial velocity v, the acceleration due to gravity is constantly subtracting from its initial velocity, hence (v = v(i) - gt). So when the ball is going up away from the ground, g is negative, and at time t it will have gt less velocity from its initial velocity until v(i) = gt, leaving net velocity = 0. So now the ball is at its maximum height, v=0, but it still has acceleration, remember the acceleration due to gravity arises from a natural force between masses, so did the Earth dissappear? no, then g MUST still be acting. So at v=0, g is still acting on the ball, it is still subtracting from the initial velocity. Note also how it will now have a negative velocity (now going in the direction of g) (though, the sign is arbitrary). It always helps to visualize the equations in motion as t varies.