Added Reachability to determine if host is reachable. Some style changes and prelimiary things.