Added gps functions and classes