Added scripts and fixed a segfault that could occur if the host name was not given after the -n flag.