Few bug fixes. Added handling of no internet connection.