added gps update function, fixed typo, renamed functions to local