Moved stuff in mainActivity for simplicity
Fixing JSON reading
Not tested GPS
most of it works now