Comments and reconnect-loop added