Reorganized initialization
Added wi-fi network connection checks, server availability check