v.1.0.13 - added events, fixed many bugs