Adds functionality to load hostnames from file, for issue#17.