isNetworkAvailable & isGpsAvailable logic added, several TODO's added as well