I don't think there are any rules for height advantage.
However, for cover, you should simply use the normal cover rules but use them in the 3rd dimension. Enemies at the top of the 10' pit will have cover, and enemies 1 square back from the pit either have superior cover (-5) or can't be seen...