fixed some bugs, removed sysouts
fixed some bug

Reconnect to MQTT server if connection was lost