A small fix the INSTALL file
A small fix for the example scripts
Add a boolean to verify connection states

This should prevent crashes when calling methods which shouldn't be
called when in a disconnected state.