Renamed isClosed to isConnected as it is more clear.
Updated README.md and example file.

Signed-off-by: Michel Verbraak <info@1st-setup.nl>