added saving function to elevation
add setting for elevation