additional work on elevation table (include slope).
Cleanup - remove unused code.