Add gmap3 library and improve coding style