Adds support for 'update' to Entities.

Adds support for 'update' to Entities.
Adds an example of checkbox declared as Entity with update method.