Updated Altimeter library to take data pointers as well as return data