Added -fromfile support

Added the command line parameter -fromfile and some basic testing. Also
added the initial code for two other parameters, attempts and hostname.