Optimised returns and small changes

Removed unused directives
Changed SetCallBack to SetNotification
Altered the string test in IsHostReachable to use string.IsNullOrEmpty
Simplified returns in IsAdHockWifiNetworkAvailable and
IsNetworkAvailable