Fix setter
Update and simplify events declaration

`$.var` event declaration added