[fix] coding style and some comments
[fix] add reconnect logic using `back`