updated hostfile variable names and fixed issue with hostfile name.