Removed minor error + added sendInterval

and some spacing..