Fix crash on external connection to socket

If some external entity happened to connect to erld's socket, it would
cause erld to crash. This patch resolves that.
Spelling.
Clarify erld error message for hostname lookup failure.

Patch from Nick Marino.
fix for typos in example
Merge pull request #10 from sumkincpp/patch-1

fix for typos in example