Added functions check for internet connection
added functionality to sharedpreferences
gps support. first init.