added isConnected public method
IDEA gitignores