Remove remnants of a for loop.
Simplify event delegation and undelegation.
Update comments in todo example.
Move property initialisation to constructor.
New release v0.5.0.