Fixed some readablity issues, added logs

Setted counter to 1, to avoid colissions with defaulted id-int to zero
on client.