fix discrepancy while reconnection scheduling
decrease reconnect period
extend readme with code examples