updates to loadHosts
updates to loadHosts

Fixes function name in documentation.

Moves error check outside of the loop. It could never be executed
inside the loop, as `.Scan()` would have returned `false`.

crosbymichael/slex