Commented out everything I moved elsewhere. The compass probably doesn't work. :)
Added the functions for the bearing and distance calculations.
Created another file to hold the animation stuff. I will make these functions and call them when needed.