Re-grouped and commented functions in MapsActivity for re-organization