Added reading from properties file
Added reconnect function