changed the functions onleave and onenter to event triggers
included the accessible variables in the readme
Merge branch 'release/0.4.1' into develop